package com.webware.one.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.webware.one.shared.dto.UserDto;
import com.webware.one.shared.exception.AnyServiceException;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("service.rpc")
public interface GwtRpcService extends RemoteService {
  public void test() throws AnyServiceException;

  public void logout() throws AnyServiceException;

  public UserDto getCurrentUser() throws AnyServiceException;

  public Long saveUser(UserDto user, String password) throws AnyServiceException;

  public Long saveUser(UserDto user) throws AnyServiceException;
}
